	<%= @download.title %>&nbsp;<%= link_to image_tag("add.gif"), {:action => :add_file, :id => @download.id}, {:title => "添加文件"} %>
	<table>
		<tr class="tab">
			<th width="40" align="center">序号</th>
			<th width="120" align="left">文件名称</th>
			<th width="120" align="center">文件大小</th>
			<th width="120" align="center">创建时间</th>
			<th width="120" align="right">操作</th>
		</tr>
	 	<% @download.downfiles.each_with_index do |file, index| %>
			<tr onmouseover="this.className='cur_tr';" onmouseout="this.className='';" class="">
				<td class="number"><%= (index+1) %></td>
				<td><%= link_to file.name,{:controller => "downloads", :action => "show", :id => @download.id}, {:title => file.name} %></td>
				<td><%= file.size/1024/1024 %>M</td>
			  <td><%= file.created_at.strftime("%Y-%m-%d %H-%M-%S") %></td>
				<td align="right">
					<%= link_to image_tag("destroy.gif"), {:controller => :content, :action => :destroy_file,:id => file.id},{:confirm => "确定删除？", :title => "删除#{file.name}"} %>
				</td>
			</tr>
	 	<% end %>

	</table>
